home *** CD-ROM | disk | FTP | other *** search
/ New Perspectives on Computer Concepts / New Perspectives on Computer Concepts.iso / np2010c / page782.pag < prev    next >
Portable Network Graphic  |  2008-10-02  |  87KB  |  817x1045  |  8-bit (256 colors)
Labels: book | chat room | crt screen | hakham | monitor | road | sky
OCR: 7 1 4 SECTION D CHAPTER 1.2 To apply the betterdeal rule, additional rules are necessary calculate the square-inch price of each pizza You'll look at these rules in more detail later in this section. How does programmer plan a declarative program? The core of most declarative programs set of facts and rules that describe problem. The logic for the pizza program is very simple because the solu- tion depends on a single factor the lowest square-inch price. Declarative programs with such simple logic don't require much planning In contrast, programs that deal with multiple factors have more complex logic and often require planning tools, such as decision tables. decision table is tabular method for visualizing and specifying rules based on multiple factors. As an example, suppose your decisio ...